package rectangle

type rectangle struct {
	width, height float64
}

func NewRectangle(w,h float64) rectangle {
	return rectangle{w,h}
}

func (r *rectangle) Area() float64 {
	return r.width * r.height
}

func (r *rectangle) GetWidth() float64 {
	return r.width
}

func (r *rectangle) GetHeight() float64 {
	return r.height
}
